package com.distribute.config;

/**
 * 用户配置
 */
public class Config {
    private final String url;

    private final int timeout;

    private final int retryTimes;

    private final String serviceName;

    public Config(String url, int timeout, int retryTimes, String serviceName) {
        this.url = url;
        this.timeout = timeout;
        this.retryTimes = retryTimes;
        this.serviceName = serviceName;
    }

    public String getUrl() {
        return url;
    }

    public int getTimeout() {
        return timeout;
    }

    public int getRetryTimes() {
        return retryTimes;
    }

    public String getServiceName() {
        return serviceName;
    }
}
